package org.rency.ues.domain.request;

import org.rency.ues.common.enums.EncryptType;

import javax.validation.constraints.NotNull;

/**
 * 验签请求
 *
 * @author: Created by user_rcy@163.com on 2016/08/31.
 * @version: V1.0.0
 * @since JDK 1.8
 */
public class VerifySignRequest extends BaseRequest{

    /**
     * 证书序列号
     */
    @NotNull(message = "证书序列号不能为空")
    private String serialNo;

    /**
     * 加密方式
     */
    @NotNull(message = "加密方式不能为空")
    private EncryptType encryptType = EncryptType.RSA;

    /**
     * 验签数据
     */
    @NotNull(message = "验签数据不能为空")
    private String signData;

    /**
     * 原始数据
     */
    @NotNull(message = "原始数据不能为空")
    private String orgiData;

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public EncryptType getEncryptType() {
        return encryptType;
    }

    public void setEncryptType(EncryptType encryptType) {
        this.encryptType = encryptType;
    }

    public String getSignData() {
        return signData;
    }

    public void setSignData(String signData) {
        this.signData = signData;
    }

    public String getOrgiData() {
        return orgiData;
    }

    public void setOrgiData(String orgiData) {
        this.orgiData = orgiData;
    }
}
